package com.ceshiren.springstudy.controller;

import com.ceshiren.springstudy.config.JDBCConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class BaseJdbcController {

    @Autowired
    JDBCConfig jdbcConfig;

    @GetMapping(value = "/getJdbc",produces = "application/json")
    public Map<String,String> getJdbc(){
        return jdbcConfig.getJDBCConfig();
    }

}
